package Game;

public class Computer extends Role {
    public String fist() {
       Computer computer=new Computer();
       int number=computer.getNumber();
       if(number==0){
           return "石头";
       }else if (number==1){
           return "剪刀";
       }else if (number==2){
           return "布";
       }
       return "";
    }

    public int getNumber() {
        return (int) (Math.random() * 2 + 0);
    }
}
